package com.lagou.guava.controller;

import com.lagou.guava.model.Position;
import com.lagou.guava.service.PositionServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.concurrent.ExecutionException;

/**
 * @ClassName PositionController
 * @Description TODO
 * @Author xsq
 * @Date 2020/11/4 17:25
 **/
@RestController
@RequestMapping("/position")
public class PositionController {

    /**
     * 获取热点数据
     */
    @Autowired
    private PositionServiceImpl positionServiceImpl;
    @RequestMapping("/getHotList")
    public List<Position> getHotList() throws ExecutionException {
        return positionServiceImpl.getHotList();
    }
}
